package com.sfxy.tool;

import java.io.UnsupportedEncodingException;

public class ChineseTool {
	public static String toChinese(String str){
		if(str==null) str="";
		try{
			str=new String (str.getBytes("UTF-8"),"GBK");
		}catch(UnsupportedEncodingException e){
			str="";
			e.printStackTrace();
		}
		return str;
	}
}
